#set($title = "会员登录")
#parse("/home/_header.html")
<div id="nav">
    <a href="/">$!domain.domain</a>&raquo;&nbsp; $title
</div>
<form name="form" action="/myforum/login" method="post">
    <div class="mainbox formbox">
        <span class="headactions"><a class="notabs" href="/help/member" target="_blank">登录帮助</a></span>
        <h1>$title</h1>
        <table cellspacing="0" cellpadding="0" summary="$title">
            <tbody>
                <tr>
                    <th >
                        <label for="userID">
                            用户名
                        </label>
                    </th>
                    <td>
                        <input id="userid" tabindex="2" maxlength="40" size="25" name="j_username" value="$!SPRING_SECURITY_LAST_USERNAME">&nbsp;<a href="/register">立即注册</a><label for="userid" generated="true" class="error" style="">$!SPRING_SECURITY_LAST_EXCEPTION.message</label>
                        <input type="hidden" name="fromPath" value="$!fromPath"><label for="userid" generated="true" class="error" style="">#if($error=="true")$domain.info('userErrorMsg') #elseif($error=="lock")$domain.info("userLockedMsg") #else  #end</label>
                    </td>
                </tr>
                <tr>
                    <th>
                        <label for="pwd">
                            密码
                        </label>
                    </th>
                    <td>
                        <input id="pwd" tabindex="5" type="password" size="25" name="j_password">&nbsp;<a href="/findPwd">忘记密码</a>
                    </td>
                </tr>
				<!--
                <tr>
                    <th>
                        登录有效期
                    </th>
                    <td>
                        <label>
                            <input class="radio" tabindex="8" type="radio" value="0" name="cookietime" checked="">浏览器进程（约30分钟）
                        </label>
                        <label>
                            <input class="radio" tabindex="9" type="radio" value="3600" name="cookietime">一小时
                        </label>
                        <label>
                            <input class="radio" tabindex="10" type="radio" value="86400" name="cookietime">一天
                        </label>
                        <label>
                            <input class="radio" tabindex="11" type="radio" value="2592000" name="cookietime">一个月
                        </label>
                        <label>
                            <input class="radio" tabindex="12" type="radio" value="315360000" name="cookietime">永久
                        </label>
                    </td>
                </tr>
				-->
                <tr class="btns">
                    <th>
                      <input type="checkbox" name="_spring_security_remember_me" id="rememberMe" value="true"/>两周之内不必登陆<br />
                    </th>
                    <td height="30">
                        <input class="submit"  name="loginsubmit" type="submit" value="登陆">
						<input class="submit" type="reset" value="重置">
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
	<input type="hidden" name="lastAccessUrl" value="$!lastAccessUrl">
</form>
<script type="text/javascript">
	$(function(){
		$("input[type='submit']").click(function(){
			if($("#userid").val().length==0||$("#pwd").val().length==0){
			alert("用户名或密码必填！");
		    return false;
		   }
		});
		
	});
</script>

